package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {


    /**
     * 订单详明表中批量插入订单详情
     * @param orderDetails
     */
//    @Insert("insert into order_detail(name, image, order_id, dish_id, setmeal_id, dish_flavor, amount)" +
//            " VALUES (#{name}, #{image}, #{order_id}, #{dish_id}, #{setmeal_id}, #{dish_flavor}, #{amount})")
    void insertOrderDetails(List<OrderDetail> orderDetails);

}
